﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
// HUSK TIMELOG!!!!


namespace Model
{
    [DataContract]
    public class Timer
    {
        [DataMember]
        public DateTime timeStart { get; set; }
        [DataMember]
        public DateTime timeSlut { get; set; }
        [DataMember]
        public DateTime dato { get; set; }
        [DataMember]
        public Bruger bruger { get; set; }
        [DataMember]
        public Projekt projekt { get; set; }
        [DataMember]
        public string kommentar { get; set; }
        [DataMember]
        public bool timeGodkendelse { get; set; }
        [DataMember]
        public bool timeUdbetalt { get; set; }

        public Timer(DateTime timeStart, DateTime timeSlut, DateTime dato, Bruger bruger, Projekt projekt, string kommentar,
                     bool timeGodkendelse, bool timeUdbetalt)
        {
            this.timeStart = timeStart;
            this.timeSlut = timeSlut;
            this.dato = dato;
            this.projekt = projekt;
            this.kommentar = kommentar;
            this.timeGodkendelse = timeGodkendelse;
            this.timeUdbetalt = timeUdbetalt;
        }
    }
}
